package com.learn.educourseboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.learn.eduapi.entity.ad.PromotionAd;
import com.learn.eduapi.entity.course.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CourseDao extends BaseMapper<Course> {
    //获取课程列表
List<Course> getAllCourse( @Param("nowPage")Integer nowPage,@Param("pageSize")Integer pageSize);

List<Course> getAllCourseById(@Param("courseId")String courseId);

@Select("select * from course")
    List<Course> getCrouseList();
}
